//
//  HistoricVariablePlot.h
//  histoval
//
//  Created by Daniel Braun on 16/06/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@class HistoryVariable;

#define PLOT_ADD   (1<<0)
#define PLOT_MIN0  (1<<1)
#define PLOT_FILL  (1<<2)

#define PLOT_CUMUL (PLOT_ADD|PLOT_FILL)

@interface HistoricVariablePlot : NSObject {
	NSMutableArray *variables;
	NSDate *minDate;
	NSDate *maxDate;
	NSDate *date1;
	NSDate *date2;
	NSSize size;
	int flags;
	NSImage *cachedImage;
}

- (id) initWithSize:(NSSize)s;
- (void) addHistoryVariable:(HistoryVariable *)v;
- (void) setDates:(NSDate *)d1 and:(NSDate *)d2;
- (void) setFlags:(int)f;

- (NSImage *) plotImage;

@end
